package com.code.day02;


import java.util.Scanner;

public class Demo {
    public static void main(String[] args) {
        int i = 10;
        int j = 50;
        System.out.println(i == j ^ (i == j));

        System.out.println("=================");

        int heShang1 = 100;
        int heShang2 = 200;
        int heShang3 = 300;
//         如果 前面的对比真则获取前面的值  假获取后面的值
        int result = heShang1 > heShang2 ? heShang2 : heShang1;
        int res = heShang3 > result ? heShang3 : result;
        System.out.println(res);


        System.out.println("=====================");
//        键盘的录入 Scanner
        Scanner sc = new Scanner(System.in);
        int data1 = sc.nextInt();
        int data2 = sc.nextInt();
        int data3 = sc.nextInt();
        int map = data1 > data2 ? data1 : data2;
        int map2 = data3 > map ? data3 : map;
        System.out.println(map2);

//       next遇到空格回车自动中断   nextLine不会
        String data4 = sc.nextLine();
        System.out.println(data4);
        sc.close();

    }


}